<?php

/////////////////////////////////////////////////////////////
// Please note that if you get any errors when connecting, //
// that you will need to email your host as we cannot tell //
// you what your specific values are supposed to be        //
/////////////////////////////////////////////////////////////

// type of database running
// (only mysql is supported at the moment)
$dbservertype = 'mysql';

// hostname or ip of server
$servername = '127.0.0.1'; //<--你使用的db的ip或网址

// username and password to log onto db server
$dbusername = ''; //<--连结db的帐号
$dbpassword = ''; //<--连结db的密码

// name of database
$dbname = ''; //<--你使用的db名称

// technical email address - any error messages will be emailed here
$technicalemail = ''; //<--当有error讯息时所要寄发的email位子

// use persistant connections to the database
// 0 = don't use
// 1 = use
$usepconnect = 0;

return [
    'database_type' => $dbservertype,
    'database_name' => $dbname,
    'server' => $servername,
    'username' => $dbusername,
    'password' => $dbpassword,
    'charset' => 'utf8',

    // 可选参数
    'port' => 3306,
]
?>